<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

						<s:if test="commentShows.size>0">
							<s:subset source="commentShows" count="20">
								<s:iterator>
						<div class="commentItem">
							<p>
								<b class="red"><s:property value="user.signInName" /></b>&ensp;[<s:property value="postTime" />]
							</p>
							<pre width="108"><s:property value="content" /></pre>
						</div>
						<div class="blank"></div>
								</s:iterator>
							</s:subset>
						</s:if><s:else>
							暂无评论!
						</s:else>
						<div class="viewAll">
							<a href="javascript:void(0)">查看所有评论&gt;&gt;</a>
						</div>
						<div class="blank"></div>
						<table class="sendTable">
							<tr class="title">
								<td>发表评论</td>
							</tr>
							<s:if test="#session.user==null">
							<tr>
								<td>
									<textarea readonly="readonly" id="comment" class="formTextarea">评论请先登录！</textarea>
								</td>
							</tr>
							</s:if><s:else>
							<tr>
								<td>
									<input id="bookID" type="hidden" value='<s:property value="bookID" />' />
									<textarea id="content" name="content" class="formTextarea"></textarea>
								</td>
							</tr>
							<tr>
								<td style="text-align: right;">
									<input type="button" value="提交评论" class="formButton" onclick="comment();">
								</td>
							</tr>
							</s:else>
						</table>